﻿using System;
using System.Collections.Generic;
using System.Web;
using NFinal.Advanced;

namespace WebMvc.App.Web.Default.HelloWorldController
{
    public class ParameterAction  : Controller
	{
		public ParameterAction(System.IO.TextWriter tw):base(tw){}
		public ParameterAction(string fileName) : base(fileName) {}
        #region 输出
        //输出文本

        
        //输出HTML
        
        //输出Json
        
        #endregion
        #region 输入
        //URL
        /// <summary>
        /// Form提交
        /// </summary>
        /// <param name="name">名称</param>
        /// <param name="pwd">密码</param>
        public void Parameter(string name)
        {
            //<form action="/App/HelloWorld/Parameter.htm" method="post" placeholder="名称">
            //<input type="text" required pattern="^[a-zA-Z][a-zA-Z0-9_]{4,15}$" name="name" value="" />
            //<input type="text" name="pwd"/>
            //</form>
            WriteLine("http://localhost/App/HelloWorldController/Parameter/name/NFinal.htm");
            Write("您好:");
            Write(name);
        }
        
        
        //POST提交
        
        #endregion
    }
}